package com.event.bus;

import java.io.Serializable;

/**
 * 业务聚合
 *
 * @version [V2.0]
 * @package com.event.bus;
 * @description:[用一句话描述该文件做什么]
 * @author: [zhuben]
 * @date: [2024-02-26 09:15]
 * @copyright: 2024 echovin.com
 */

public class EventModel<T> implements Serializable {

    private String topic;

    private T model;

    public EventModel(String topic, T model) {
        this.topic = topic;
        this.model = model;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public T getModel() {
        return model;
    }

    public void setModel(T model) {
        this.model = model;
    }
}
